<template>
	<view class="content">
		<navigabar title='钱包明细' />
		<image class="ui_bg" src="/static/img/bg_balance.png" mode=""></image>
		<view class="ui_head">
			<image class="ui_head_bg" src="/static/img/icon_balance_top.png" mode=""></image>
			<view class="ui_head_text">我的钱包（元）</view>
			<view class="ui_head_money">1725.50</view>
			<view class="ui_head_info" @click="goTo('/pages/user/balance_detail')">
				<view class="ui_head_info_lable"></view>
				<view class="ui_head_info_text">明细</view>
				<image class="ui_head_info_icon" src="/static/img/icon_goto.png" mode=""></image>
			</view>
		</view>
		<view class="ui_list">
			<view class="ui_list_item">
				<view class="ui_list_item_text">微信小店-橱窗收入</view>
				<view class="ui_list_item_time">2025-05-10 12:45:56</view>
				<view class="ui_list_item_money s">-200.00</view>
			</view>
			<view class="ui_list_item" v-for="(item,index) in 4" :key="index">
				<view class="ui_list_item_text">微信小店-橱窗收入</view>
				<view class="ui_list_item_time">2025-05-10 12:45:56</view>
				<view class="ui_list_item_money">+200.00</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

			goTo(url) {
				console.log(url)
				this.$util.navTo(url)
			},
		}
	}
</script>

<style lang="less">
	page {
		background-color: #fff;
	}
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.ui_bg {
			position: absolute;
			top: 0;
			left: 0;
			width: 750rpx;
			height: 400rpx;
			z-index: 88;
		}
		
		.ui_list {
			width: 690rpx;
			padding: 0 30rpx;
			background-color: #fff;
			&_item {
				height: 140rpx;
				border-bottom: 1rpx solid #E6E6E6;
				display: flex;
				flex-direction: column;
				position: relative;
				&_text {
					margin-top: 30rpx;
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 28rpx;
					color: #3E3A39;
					line-height: 48rpx;
				}
				&_time {
					margin-top: 10rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #999999;
					line-height: 48rpx;
				}
				&_money {
					position: absolute;
					top: 50rpx;
					right: 0;
					font-family: D-DIN Condensed;
					font-weight: bold;
					font-size: 44rpx;
					color: #333333;
					line-height: 48rpx;
				}
				.s {
					color: #9F6F26;
				}
			}
		}

		.ui_head {
			margin-top: 20rpx;
			width: 750rpx;
			height: 274rpx;
			z-index: 90;
			display: flex;
			flex-direction: column;
			position: relative;

			&_bg {
				position: absolute;
				left: 0;
				top: 0;
				width: 750rpx;
				height: 274rpx;
			}

			&_text {
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #FFE8C3;
				margin-top: 40rpx;
				margin-left: 47rpx;
				z-index: 90;
			}

			&_money {
				z-index: 90;
				margin-left: 47rpx;
				font-family: D-DIN Condensed;
				font-weight: bold;
				font-size: 72rpx;
				color: #F6DCB2;
				background: linear-gradient(0deg, #FFFAF2 0%, #FAE6C3 100%);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
			}
			&_info {
				width: 690rpx;
				margin-left: 30rpx;
				z-index: 90;
				display: flex;
				height: 50rpx;
				align-items: center;
				margin-top: 30rpx;
				&_lable {
					width: 10rpx;
					height: 36rpx;
					background: #9F6F26;
					border-radius: 5rpx;
				}
				&_text {
					margin-left: 15rpx;
					flex: 1;
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 32rpx;
					color: #333333;
					line-height: 48rpx;
				}
				&_icon {
					width: 60rpx;
					height: 50rpx;
				}
			}
		}
	}
</style>